Batch Refund 相关的 Event 类型

该类型的 Event 对象会在 batch_refund 对象批量退款成功后触发,以 Webhooks 形式发送至客户配置的 Webhooks URL。详情请参考 Events 事件

事件类型描述
batch_refund.succeeded批量退款对象,批量退款成功时触发。

示例对象

{
    "id": "evt_401180105144153102210801",
    "created": 1515134513,
    "livemode": true,
    "type": "batch_refund.succeeded",
    "data": {
        "object": {
            "id": "1511801051441290118",
            "app": "app_r1uDe9rDashboard",
            "object": "batch_refund",
            "batch_no": "Br20180100944122120465",
            "created": 1515134483,
            "description": "Testing for batch refund",
            "charges": [
                {
                    "charge": "ch_fHyjLKaj5OSOKCSWj01unzzL",
                    "refund": "re_qXPmnTD4ezHSWjLyfP5KWorT",
                    "status": "succeeded",
                    "failure_msg": null,
                    "amount": 1,
                    "description": "Description ch_fHyjLKaj5OSOKCSWj01unzzL"
                },
                {
                    "charge": "ch_HmnDKKDmrb185mbjDOCqbjct",
                    "refund": "re_DGm9S4jPWHKGTyzTaHPCG090",
                    "status": "failed",
                    "failure_msg": null,
                    "amount": 10,
                    "description": "Description ch_HmnDKKDmrb185mbjDOCqbjct"
                }
            ],
            "refunds": {
                "object": "list",
                "url": null,
                "has_more": false,
                "data": [
                    {
                        "id": "re_qXPmnTD4ezHSWjLyfP5KWorT",
                        "object": "refund",
                        "order_no": "qXPmnTD4ezHSWjLyfP5KWHuT",
                        "amount": 1,
                        "created": 1515134486,
                        "succeed": true,
                        "status": "succeeded",
                        "time_succeed": 1515134486,
                        "description": "Description ch_fHyjLKaj5OSOKCSWj01unzzL",
                        "failure_code": null,
                        "failure_msg": null,
                        "metadata": {},
                        "charge": "ch_fHyjLKaj5OSOKCSWj01unzzL",
                        "charge_order_no": "46093aa0c1d5f2fe",
                        "transaction_no": "2018010421001004920246701437",
                        "extra": {}
                    },
                    {
                        "id": "re_DGm9S4jPWHKGTyzTaHPCG090",
                        "object": "refund",
                        "order_no": "DGm9S4jPWHKGTyzTaHPCG090",
                        "amount": 10,
                        "created": 1515134489,
                        "succeed": false,
                        "status": "failed",
                        "time_succeed": null,
                        "description": "Description ch_HmnDKKDmrb185mbjDOCqbjct",
                        "failure_code": null,
                        "failure_msg": null,
                        "metadata": {},
                        "charge": "ch_HmnDKKDmrb185mbjDOCqbjct",
                        "charge_order_no": "T160824050908ag",
                        "transaction_no": null,
                        "extra": {}
                    }
                ]
            },
            "refund_url": null,
            "status": "partially_succeeded",
            "time_succeeded": 1515134513,
            "livemode": true,
            "metadata": {
                "userStr": "KTs/YDg3ZFUFONZUC10SuA=="
            }
        }
    },
    "object": "event",
    "request": "iar_HuL84Ki1SirDCivPaHG44y50",
    "pending_webhooks": 0
}